package com.ssww.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.ssww.service.BannerService;


@Controller
@RequestMapping("/job1")
public class SampleController  extends AbstractController {
	@Resource
	private BannerService bannerService;
	


	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
			
		this.handleRequest(request, response).getModel();
		ModelAndView mav = new ModelAndView("hello");  
        mav.addObject("message", "Hello World!");  
        return mav;  

	}  

	
}
